﻿<UserControl 
    xmlns:local="clr-namespace:Marking.Dashboard.Views.Stock"  
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vc="clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts"  
    x:Class="Marking.Dashboard.Views.Stock.StockView"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles/Style.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Style="{StaticResource H2ContainerStyle}">
            <TextBlock Text="实时库存" Style="{StaticResource H2TextStyle}"/>
        </StackPanel>
        
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <local:StockColumnChartView 
                Grid.Column="0" DataContext="{Binding SalesClothStockColumnChartViewModel}" 
                ReportUrl="/application/marketingwarehouse/Pro_WHStoreQuery.htm"/>

            <local:StockColumnChartView 
                Grid.Column="1" DataContext="{Binding ColouredClothStockColumnChartViewModel}" 
                ReportUrl="/application/marketingplan/Pro_PLGetColorClothStock.htm"/>

            <local:StockColumnChartView 
                Grid.Column="2" DataContext="{Binding ClothStockColumnChartViewModel}" 
                ReportUrl="/application/marketingplan/Pro_PLPlanticleStoreQueryByColumn.htm"/>
        </Grid>
    </Grid>
</UserControl>
